from skimage.feature import hog
from skimage import io
from cv2 import cv2 as cv
im = io.imread('./1.jpg', as_gray=True)

normalised_blocks, hog_image = hog(im, orientations=12, block_norm='L1', pixels_per_cell=(
    4, 4), cells_per_block=(4, 4), transform_sqrt=True, visualize=True)
cv.imshow('TEST1', hog_image)
cv.waitKey(0)
cv.destroyAllWindows()
